/*
 * Expense.h
 *
 *  Created on: Jan 26, 2010
 *      Author: vish
 */

#ifndef EXPENSE_H_
#define EXPENSE_H_

#include <e32def.h>
#include <e32cmn.h>
#include <e32des8.h>
#include <e32std.h>

class Expense
	{
private:
	TInt iCategory;
	TReal iExpense;
	TTime iDate;
	TBuf<200> iNote;
public:
	void SetCategory(TInt aCategory) { this->iCategory = aCategory; }
	TInt GetCategory() { return iCategory; }
	
	void SetExp(TReal aExp) { this->iExpense = aExp; }
	TReal GetExp() { return this->iExpense; }
	
	void SetDate(TTime aDate) { this->iDate = aDate; }
	TTime GetTime(){ return this->iDate; }
	
	void SetNote(TDesC& aNote) { this->iNote.Append(aNote); }
	void GetNote(TDes& aNote){ aNote.Append(iNote); }
	
	Expense();
	virtual ~Expense();
	};

#endif /* EXPENSE_H_ */
